const list=require("../LearnToDecorate/data.js");
let app=getApp().globalData
console.log(app)
console.log(list)
Page({
    data: {
        list:{}
    },
    dj(e){
      console.log(e)
      const dj=e.currentTarget.dataset.item
      app.userInfo=dj
      console.log(dj)
      wx.navigateTo({
        url: '../LearnToDecorate/xianqin/xianqin?id='+dj,
      })
    },
    onShow () {
        console.log(list)
        // this.setData({
        //     list:list.data,
        // })
        list.data.forEach(item => {
           this.setData({
            list:list.data,
        })
        }); 
    }
});